﻿import request from '/@/utils/request';
enum Api {
  AddBanZu = '/api/banZu/add',
  DeleteBanZu = '/api/banZu/delete',
  UpdateBanZu = '/api/banZu/update',
  PageBanZu = '/api/banZu/page',
  DetailBanZu = '/api/banZu/detail',
}

// 增加班组
export const addBanZu = (params?: any) =>
	request({
		url: Api.AddBanZu,
		method: 'post',
		data: params,
	});

// 删除班组
export const deleteBanZu = (params?: any) => 
	request({
			url: Api.DeleteBanZu,
			method: 'post',
			data: params,
		});

// 编辑班组
export const updateBanZu = (params?: any) => 
	request({
			url: Api.UpdateBanZu,
			method: 'post',
			data: params,
		});

// 分页查询班组
export const pageBanZu = (params?: any) => 
	request({
			url: Api.PageBanZu,
			method: 'post',
			data: params,
		});

// 详情班组
export const detailBanZu = (id: any) => 
	request({
			url: Api.DetailBanZu,
			method: 'get',
			data: { id },
		});


